/*
 * @Author: CQJ
 * @Date: 2022-08-25 20:00:27
 * @LastEditors: CQJ
 * @LastEditTime: 2022-09-19 15:21:37
 * @Description:
 */
import { reactive } from 'vue'

interface DomainState {
  isDisabled: boolean
  domainInsteadVisible: boolean
  replace_type: undefined | number
  before_domain: string
  after_domain: string
  replace_option: number | undefined
}

// 域名替换状态管理
export const domainState = reactive<DomainState>({
  isDisabled: false,
  domainInsteadVisible: false,
  replace_type: undefined,
  before_domain: '',
  after_domain: '',
  replace_option: undefined
})
export const configRules = reactive({
  replace_type: [{ required: true, message: '请选择需替换的域名类型' }],
  before_domain: [{ required: true, message: '请输入域名' }],
  after_domain: [{ required: true, message: '请输入域名' }]
})
//域名类型数据
export const domainData = [
  {
    value: undefined,
    label: '选择需替换域名类型'
  },
  {
    value: 0,
    label: '影片域名'
  },
  {
    value: 1,
    label: '图集内容域名'
  },
  {
    value: 2,
    label: '影片封面域名'
  },
  {
    value: 3,
    label: '图集封面域名'
  },
  {
    value: 4,
    label: '文章封面域名'
  },
  {
    value: 5,
    label: '影人封面域名'
  },

  {
    value: 6,
    label: '广告封面域名'
  }
]
